package top.yokey.android.base;

import android.app.Application;
import android.os.Build;

import java.util.HashMap;

import top.yokey.android.http.HttpHelp;

public class App extends Application {

    private static App app;

    public static App get() {
        return app;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        app = this;
        //第三方框架，应用自定义框架，系统通用的类，放在此处进行初始化
        //初始化httpHelp
        HashMap<String, String> hashMap = new HashMap<>();
        hashMap.put("model", Build.MODEL);
        HttpHelp.get().init(this, "http://192.168.56.1/api/", hashMap);
    }

}


